package top.wardyan.sqlchecker.jobs;

import com.jfinal.aop.Aop;
import com.jfinal.kit.Prop;

import top.wardyan.base.common.annotation.Service;
import top.wardyan.base.common.config.ConfigProp;
import top.wardyan.sqlchecker.business.SQLCheckerBusiness;

@Service
public class SqlCheckerJob {

	private static final cn.hutool.log.Log log = cn.hutool.log.Log.get();
	
	// feishu.devmode
	private static final Prop PROP = ConfigProp.load();
	private static final Boolean ENABLE = PROP.getBoolean("sqlchecker.enable", false);
	private SQLCheckerBusiness business = Aop.get(SQLCheckerBusiness.class);
	/**
	 * 每天晚上11:50分开始检查SQL
	 */
	public void deal() {
		if(ENABLE) {
			business.go();
		}
	}
	

	public void deal2() {
		if(ENABLE) {
			business.go();
		}
	}

	public void deal3() {
		if(ENABLE) {
			business.go();
		}
	}
	
}























